@extends('admin.layouts.app')
@section('content')
<div class="page-header">
        <h3 class="page-title">
           <a href="{{route('admin.banner.create')}}" class="btn btn-success btn-xs">添加Banner</a>
        </h3>
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="">Banner管理</a></li>
                <li class="breadcrumb-item active" aria-current="page">Banner列表</li>
            </ol>
        </nav>
    </div>
<div class="row">
   <div class="col-md-12 grid-margin stretch-card">
<div class="card">
                <div class="card-body">


                  <table class="table">
                    <thead>
                      <tr>
                        <th class="text-center" width="5%">ID</th>
                        <th class="text-center">名称</th>
                        <th class="text-center" width="20%">英文名称</th>
                        <th class="text-center" width="10%">操作</th>
                      </tr>
                    </thead>
                    <tbody>
                    @foreach($list as $vo)
                      <tr>

                        <td class="text-center">{{$vo->id}}</td>
                        <td class="text-center" >{{$vo->title}}</td>
                        <td class="text-center">{{$vo->entitle}}</td>
                        <td class="text-center">
                        <a href="{{route('admin.banner.edit',$vo->id)}}" class="btn btn-success btn-sm" style="float:left;margin-right:10px;">编辑</a>

                        {!! Form::open(['route'=>['admin.banner.destroy',$vo->id],'method'=>'DELETE']) !!}

                        <button type="submit" class="btn btn-danger btn-sm" style="float:left;">
                            删除
                        </button>
                         {!! Form::close() !!}


                        </td>
                      </tr>
                    @endforeach
                    </tbody>
                  </table>

                  <div style="padding:10px 0;">
                   {{$list->links()}}
                    </div>
                </div>
              </div>
</div>
</div>
@endsection

